load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "pki",
    srcs = [
        "certs.go",
        "certutils.go",
        "fs.go",
        "inmem.go",
        "store.go",
        "utils.go",
    ],
    importpath = "sigs.k8s.io/etcdadm/etcd-manager/pkg/pki",
    visibility = ["//visibility:public"],
    deps = [
        "//vendor/k8s.io/client-go/util/cert",
        "//vendor/k8s.io/client-go/util/keyutil",
        "//vendor/k8s.io/klog/v2:klog",
    ],
)

go_test(
    name = "pki_test",
    srcs = ["parse_test.go"],
    embed = [":pki"],
)
